package homework;

public class Test {
    public static void main(String[] args) {
        SingleLinkedList list = new SingleLinkedList();
        list.addFirst(12);
        list.addLast(23);
//        list.addLast(34);
//        list.addLast(45);
//        list.addLast(12);
//        list.addLast(56);
//        list.addLast(12);
//        list.addLast(67);
//        list.addLast(12);
        //list.addIndex(1,78);

        //list.addIndex(5, 199);
        //boolean b = list.contains(77);
        //list.display();
        //System.out.println(b);
        //list.remove(100);
        //list.removeAllKey(12);
        //list.display();
        //System.out.println(list.size());
        //list.clear1();
        list.display();
        //list.removeAllKey(12);
        SingleLinkedList.ListNode node = list.findKthTotail(10);
        System.out.println(node);
    }
}
